//
//  MYListViewModel.swift
//  NewMicroblog
//
//  Created by apple on 2016/10/26.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

class MYListModel: NSObject {
    /// 微博ID
    var id: Int64 = 0
    ///微博信息内容
    var text:String?
    ///微博来源
    var source:String?
    ///微博作者的用户信息字段
    var user:MYUserModel?
    ///
    var retweeted_status:MYListModel?
    ///创建时间
    var created_at:Date?
    ///转发数
    var reposts_count:Int = 0
    ///评论数
    var comments_count:Int = 0
    ///表态数
    var attitudes_count:Int = 0
    /// 配图数组
    var pic_urls: [MYPictureInfoModel]?
    
    override var description: String{
        let keys = ["text","id","source","created_at","pic_urls"]
        return dictionaryWithValues(forKeys: keys).description
    }
    class func modelContainerPropertyGenericClass() -> [String: Any]{
        return ["pic_urls": MYPictureInfoModel.self]
    }

}
